import request from "../server";

export const apiLogin = (data) => { 
    return request.post('api/login', data)
}
export const apiRegister = (data) => {
    return request.post("api/register", data);
}
export const apiLogout = () => { 
    return request.post("api/logout");
}
export const apiUserInfo = () => {
    return request.get("my/getUserInfo");
}
export const apiChangeUsername = (data) => {
    return request.post("my/changeUsername", data);
}

export const apiChangePassword = (data) => {
    return request.post("my/resetPassword", data);
}
